<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>矢量地图文档显示</title>
        <!--引入当前页面样式表-->
        <!-- <link href="http://webclient.smaryun.com/style.css" rel="stylesheet" type="text/css" /> -->
        <!-- 引入地图引擎库 -->
        	<script src="http://webclient.smaryun.com/static/libs/include-lib-local-upgrade.js"></script>
        	<script src="http://webclient.smaryun.com/static/libs/include-openlayers-local.js"></script>
			
        <script type="text/javascript">
            //定义地图文档图层和地图
            var mapDocLayer, map

            /** 初始化地图显示*/
            function init() {
                //初始化地图容器
                map = new ol.Map({
                    target: 'mapCon',
                    view: new ol.View({
                        center: [0,0],
                        zoom: 1,
                        projection: 'EPSG:4326',
                    }),
                })
                //var { protocol, ip, port } = window.webclient
                //初始化地图文档图层对象
                mapDocLayer = new Zondy.Map.MapDocTileLayer('测试地图', 'maptest', {
                    ip: `gis25.jlu3s.com`,
                    port: `6163`,
                })
                //将地图文档图层加载到地图中
                map.addLayer(mapDocLayer)
            }
        </script>
    </head>
    <body onload="init()">
        <div id="mapCon" style="width: 100%; height: 95%; position: absolute;"></div>
    </body>
</html>
